<!--
HTML片段，嵌入弹窗中使用
注：在需要使用id的地方，请取st_jsid参数<?php echo $_GET['st_jsid']; ?>做前缀，避免影响到主页面
-->
<!--添加权限-->
<form action="{%:U('/admin/admin/saverole')%}" onsubmit="return false" stverify="true" erroappend="true" ajaxpost="true" method="POST">
  <table class="table table-listing">
    <tbody>
    <tr>
      <td class="span4"><span class="text-red">*</span>角色名字：</td>
      <td>
          <input class="input" type="text" name="name" opt="rq" value="{%$roleInfo['name']%}"/>
          <input class="input" type="text" name="id" hidden='true' value="{%$roleInfo['id']%}"/>
      </td>
    </tr>
<!--    <tr>
      <td class="span4">一级目录：</td>
      <td>                  
          <select class="st-dropdown" name="menuM_id" data-config="inBox:true,subId:'suboption1_<?php echo $_GET['st_jsid']; ?>'">
            <option value="0">所有</option>
           {%notempty name="menuMainList"%}
            {%foreach name="menuMainList" item="vo"%}            
            <option value="{$vo.class_id}" 
                 {%if condition="$menuM_id eq $vo['class_id']" %} selected {%/if%}>{$vo.name}</option>
            {%/foreach%}
           {%/notempty%}
          </select>
      </td>
    </tr>
    <tr>
      <td class="span4">二级目录：</td>
      <td>
          <select class="st-dropdown" name="menuS_id" id="suboption1_<?php echo $_GET['st_jsid']; ?>"  data-config="inBox:true,subId:'suboption2_<?php echo $_GET['st_jsid']; ?>'">
            <option value="0">所有</option>
           {%notempty name="menuSubList"%}
            {%foreach name="menuSubList" item="vo"%}            
            <option value="{$vo.class_id}"
                 {%if condition="$menuS_id eq $vo['class_id']" %} selected {%/if%}>{$vo.name}</option>
            {%/foreach%}
           {%/notempty%}
          </select>
      </td>
    </tr>-->
    <!--
    <tr>
      <td class="span4"></td>
      <td>
        <input type="submit" value="提交" class="btn btn-blue">
      </td>
    </tr>
    -->
    </tbody>
  </table>
</form>